package com.eyaomall.wxmanage;

import org.junit.Test;

import com.eyaomall.wxmanage.base.TestBase;
import com.lycheeframework.core.common.helper.GlobEnv;
import com.lycheeframework.mapping.MappingRuning;
import com.lycheeframework.mapping.db.Engine;

public class TableMapping extends TestBase {
	@Test
	public void test() {
		String url = GlobEnv.get("mysql.url");
		String userName = GlobEnv.get("mysql.username");
		String passwd = GlobEnv.get("mysql.password");
		String beanPath = "E:/wxsale/mapping生成/";
		String sqlmapPath = "E:/wxsale/mapping生成/";
		String packageName = "com.eyaomall.wxmanage.model.po";
		
		MappingRuning runing = new MappingRuning(Engine.mysql, url, userName, passwd);
		
//		runing.generate("M_USER", beanPath, sqlmapPath, packageName);
//		runing.generate("M_RESOURCE", beanPath, sqlmapPath, packageName);
//		runing.generate("M_AREA", beanPath, sqlmapPath, packageName);
//		runing.generate("M_SMS", beanPath, sqlmapPath, packageName);
//		runing.generate("M_OAUTH", beanPath, sqlmapPath, packageName);
//		runing.generate("M_MEMBER", beanPath, sqlmapPath, packageName);
//		runing.generate("M_COMPANY", beanPath, sqlmapPath, packageName);
//		runing.generate("M_COMPANY_CERT", beanPath, sqlmapPath, packageName);
//		runing.generate("M_ORDER", beanPath, sqlmapPath, packageName);
//		runing.generate("M_ORDER_GOODS", beanPath, sqlmapPath, packageName);
//		runing.generate("M_MENU", beanPath, sqlmapPath, packageName);
//		runing.generate("M_ROLE", beanPath, sqlmapPath, packageName);
//		runing.generate("M_ROLE_MENU", beanPath, sqlmapPath, packageName);
//		runing.generate("M_SHOP", beanPath, sqlmapPath, packageName);
//		runing.generate("M_SHOP_NOTICE", beanPath, sqlmapPath, packageName);
//		runing.generate("M_SHOP_DOT", beanPath, sqlmapPath, packageName);
//		runing.generate("M_SHOP_DOT_CITY", beanPath, sqlmapPath, packageName);
//		runing.generate("M_GOODS", beanPath, sqlmapPath, packageName);
//		runing.generate("M_GOODS_IMG", beanPath, sqlmapPath, packageName);
//		runing.generate("M_GOODS_CITY", beanPath, sqlmapPath, packageName);
//		runing.generate("M_GOODS_CATEGORY", beanPath, sqlmapPath, packageName);
//		runing.generate("M_GOODS_SELF_CATEGORY", beanPath, sqlmapPath, packageName);
//		runing.generate("M_GOODS_TEST_REPORT", beanPath, sqlmapPath, packageName);
//		runing.generate("M_COLLECT", beanPath, sqlmapPath, packageName);
//		runing.generate("M_RETURN", beanPath, sqlmapPath, packageName);
//		runing.generate("M_RETURN_GOODS", beanPath, sqlmapPath, packageName);
//		runing.generate("M_SHOPPING_CHART", beanPath, sqlmapPath, packageName);
//		runing.generate("M_QUESTION_CENTER", beanPath, sqlmapPath, packageName);
//		runing.generate("M_MEMBER_COUPON", beanPath, sqlmapPath, packageName);
//		runing.generate("M_COUPON", beanPath, sqlmapPath, packageName);
//		runing.generate("M_DEPOSIT", beanPath, sqlmapPath, packageName);
//		runing.generate("M_COMPANY_SCOPE", beanPath, sqlmapPath, packageName);
//		runing.generate("M_ARTICLE", beanPath, sqlmapPath, packageName);
//		runing.generate("M_PLAN", beanPath, sqlmapPath, packageName);
//		runing.generate("M_PLAN_GOODS", beanPath, sqlmapPath, packageName);
//		runing.generate("M_DRUG", beanPath, sqlmapPath, packageName);
//		runing.generate("M_DRUG_SCOPE", beanPath, sqlmapPath, packageName);
//		runing.generate("M_GOODS_CONSORTIUM_PURCHASE", beanPath, sqlmapPath, packageName);
//		runing.generate("M_GOODS_DOT", beanPath, sqlmapPath, packageName);
//		runing.generate("M_COMMISSION", beanPath, sqlmapPath, packageName);
//		runing.generate("M_PAY", beanPath, sqlmapPath, packageName);
//		runing.generate("M_PAY_ORDER", beanPath, sqlmapPath, packageName);
//		runing.generate("M_SETTLEMENT", beanPath, sqlmapPath, packageName);
//		runing.generate("M_GOODS_PRICE_LADDER", beanPath, sqlmapPath, packageName);
//		runing.generate("M_ORDER_EVAL", beanPath, sqlmapPath, packageName);
//		runing.generate("M_ADVERT_PLACE", beanPath, sqlmapPath, packageName);
//		runing.generate("M_ADVERT", beanPath, sqlmapPath, packageName);
		runing.generate("M_OPER_LOG", beanPath, sqlmapPath, packageName);
	}
}